<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
$return=array();
if($_RQ['op']=='edit'){
	$item=$this->plugin_setting('desc');
    $return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'平台介绍',
		'edit'=>array(
			array('name'=>'title','title'=>'标题','type'=>'string'),
			array('type'=>'richtext','title'=>'详情内容','name'=>'content'),
		)
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$this->plugin_setting('desc',$postdata);
	exi('设置成功');
}
?>